package by.artureg.so.ex;

public class SoException extends Throwable {
    public SoException() {
    }

    public SoException(String message) {
        super(message);
    }

    public SoException(String message, Throwable cause) {
        super(message, cause);
    }

    public SoException(Throwable cause) {
        super(cause);
    }

    public String toJsonString() {
        return "{error:'" + getMessage() + "'}";
    }
}
